| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkResources::LogManager Class Referencefinal

The log manager class attached to this component. More...

Inheritance diagram for nkResources::LogManager:

## Public Member Functions
void | setReceiver (nkLog::Logger *receiver)
nkLog::Logger * | getReceiver () const
void | log (nkMemory::StringView message, nkMemory::StringView className)

## Detailed Description

The log manager class attached to this component.

If any part of the component has to notify the user about something, it will do so by calling this class. By setting a Logger, the user is able to reroute those messages to wherever it is suitable.

## Member Function Documentation

## ◆ setReceiver()

void nkResources::LogManager::setReceiver | ( | nkLog::Logger * | receiver | ) |

Sets the logger active for this component's log manager.

Parameters

  receiver | The logger that will be used to dispatch messages logged by this component.

## ◆ getReceiver()

nkLog::Logger* nkResources::LogManager::getReceiver | ( |  | ) | const

Returns
  The logger currently attached to this component's log manager.

## ◆ log()

void nkResources::LogManager::log | ( | nkMemory::StringView | message,
|  | nkMemory::StringView | className
| ) |  |

Logs a message and dispatches it to the attached receiver.

Parameters

  message | The message to log.
  className | The class calling this function, or any contextual information helping to localize the logged message.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsResources/Log/LogManager.h